import sys
sys.path.append("../")
import requests

from model.CommonDb import *

class BaseController:
    def __init__(self,args):
        self.args = args

    def sendCmd(self,cmd):
        response = requests.post("http://192.168.28.125:9000/cmd", data=cmd)
        data = response.json()
        return data["data"][0]